var OnAds_14a4e4ead720f67100e1b7e9a90844bc_mraid = false;
document.write("
Loading...
");
var OnAds_14a4e4ead720f67100e1b7e9a90844bcreadyStateCheckInterval;
function OnAds_14a4e4ead720f67100e1b7e9a90844bcpoliteListen ()
{
OnAds_14a4e4ead720f67100e1b7e9a90844bcreadyStateCheckInterval = setInterval(function() {
if (document.readyState === "complete") {
clearInterval(OnAds_14a4e4ead720f67100e1b7e9a90844bcreadyStateCheckInterval);
document.getElementById('OnAds_14a4e4ead720f67100e1b7e9a90844bc').contentWindow.politeInit();
}
}, 10);
}
var OnAds_14a4e4ead720f67100e1b7e9a90844bcAutoReadyStateCheckInterval;
function OnAds_14a4e4ead720f67100e1b7e9a90844bc_autoPolite ()
{
document.getElementById('OnAds_14a4e4ead720f67100e1b7e9a90844bc_banner').innerHTML = '';
OnAds_14a4e4ead720f67100e1b7e9a90844bcAutoReadyStateCheckInterval = setInterval(function() {
if (document.readyState === "complete") {
clearInterval(OnAds_14a4e4ead720f67100e1b7e9a90844bcAutoReadyStateCheckInterval);
OnAds_14a4e4ead720f67100e1b7e9a90844bc_init();
}
}, 10);
}
function OnAds_14a4e4ead720f67100e1b7e9a90844bc_init ()
{
document.getElementById('OnAds_14a4e4ead720f67100e1b7e9a90844bc_banner').innerHTML = '';
var OnAds_14a4e4ead720f67100e1b7e9a90844bc = document.createElement('iframe');
OnAds_14a4e4ead720f67100e1b7e9a90844bc.width = '930';
OnAds_14a4e4ead720f67100e1b7e9a90844bc.height = '180';
OnAds_14a4e4ead720f67100e1b7e9a90844bc.setAttribute('frameborder', '0');
OnAds_14a4e4ead720f67100e1b7e9a90844bc.setAttribute('border', '0');
OnAds_14a4e4ead720f67100e1b7e9a90844bc.setAttribute('scrolling', 'no');
OnAds_14a4e4ead720f67100e1b7e9a90844bc.setAttribute('style', 'width: 930px; height: 180px; overflow: hidden; border: none; outline: none;');
OnAds_14a4e4ead720f67100e1b7e9a90844bc.src = 'about:blank';
OnAds_14a4e4ead720f67100e1b7e9a90844bc.id = "OnAds_14a4e4ead720f67100e1b7e9a90844bc";
document.getElementById('OnAds_14a4e4ead720f67100e1b7e9a90844bc_banner').appendChild(OnAds_14a4e4ead720f67100e1b7e9a90844bc);
OnAds_14a4e4ead720f67100e1b7e9a90844bc.contentWindow.contents = '' + "\n" +
'' + "\n" +
'' + "\n" +
'var API; var clickTAG = \'%%CLICK_URL_ESC%%\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'55fd98bf813cd271fa1755c0e362bd28\'); API.trackElement(\'container\'); parent.OnAds_14a4e4ead720f67100e1b7e9a90844bc_isInScreen(); init(); }; function mouseOver (e) { var obj=e.relatedTarget; while(obj!=null){ if(obj==this){ return; }; obj=obj.parentNode; }; if (typeof mouseOverListener == \'function\') { mouseOverListener(); }; API.registerEvent(API.EVENT_MOUSE_OVER); }; function mouseOut (e) { var obj=e.relatedTarget; while(obj!=null){ if(obj==this){ return; }; obj=obj.parentNode; }; API.registerEvent(API.EVENT_MOUSE_OUT); if (typeof mouseOutListener == \'function\') { mouseOutListener(); }; }; ' + "\n" +
'' + "\n" +
'' + "\n" +
'' + "\n" +
'' + "\n" +
'' + "\n" +
' ' + "\n" +
'' + "\n" +
'
' + "\n" +
'' + "\n" +
'
' + "\n" +
'
' + "\n" +
'' + "\n" +
'
' + "\n" +
'
' + "\n" +
'
' + "\n" +
'
' + "\n" +
'' + "\n" +
'
' + "\n" +
'' + "\n" +
'
' + "\n" +
'' + "\n" +
'
' + "\n" +
'' + "\n" +
'' + "\n" +
'// Define your variables here like' + "\n" +
'// references to divs and images, timelines and counters' + "\n" +
'var landingUrl = \'http://keratech.dk/alu/Rohana\';' + "\n" +
'' + "\n" +
'// Example TweenLite code, delete this block if you wont be using Tweens' + "\n" +
'var counter = 0;' + "\n" +
'var tl = new TimelineLite({onComplete:restartTimeline});' + "\n" +
'//tl.pause();' + "\n" +
'' + "\n" +
'// PRESETS' + "\n" +
'tl.to(t2, 0, {scaleX:0.5, scaleY:0.5, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(splash, 0, {scaleX:0, scaleY:0, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'' + "\n" +
'// ANIMATIONS' + "\n" +
'tl.to(t1, 0.6, {top:5, alpha:1, ease:"Quint.easeOut", delay: 0});' + "\n" +
'tl.to(t2, 0.6, {scaleX:1, scaleY:1, alpha:1, ease:"Quint.easeOut", delay: -0.6});' + "\n" +
'tl.to(t2, 0.6, {scaleX:1.5, scaleY:1.5, alpha:0, ease:"Quint.easeIn", delay: 2});' + "\n" +
'' + "\n" +
'tl.to(b1, 0.7, {bottom:5, alpha:1, ease:"Back.easeOut", delay: 0});' + "\n" +
'tl.to(b2, 0.7, {bottom:5, alpha:1, ease:"Back.easeOut", delay: -0.55});' + "\n" +
'tl.to(b3, 0.7, {bottom:5, alpha:1, ease:"Back.easeOut", delay: -0.55});' + "\n" +
'tl.to(b4, 0.7, {bottom:5, alpha:1, ease:"Back.easeOut", delay: -0.55});' + "\n" +
'' + "\n" +
'tl.to(b1, 0.7, {bottom:-150, alpha:1, ease:"Back.easeIn", delay: 2});' + "\n" +
'tl.to(b2, 0.7, {bottom:-150, alpha:1, ease:"Back.easeIn", delay: -0.55});' + "\n" +
'tl.to(b3, 0.7, {bottom:-150, alpha:1, ease:"Back.easeIn", delay: -0.55});' + "\n" +
'tl.to(b4, 0.7, {bottom:-150, alpha:1, ease:"Back.easeIn", delay: -0.55});' + "\n" +
'tl.to(t1, 0.7, {top:-40, alpha:1, ease:"Quint.easeIn", delay: -0.55});' + "\n" +
'' + "\n" +
'tl.to(splash, 0.6, {scaleX:1, scaleY:1, alpha:1, ease:"Quint.easeOut", delay: 0});' + "\n" +
'tl.to(cowgirl, 0.6, {bottom:0, alpha:1, ease:"Quint.easeOut", delay: -0.6});' + "\n" +
'tl.to(splash, 0.6, {scaleX:0, scaleY:0, alpha:1, ease:"Quint.easeIn", delay: 1.5});' + "\n" +
'tl.to(cowgirl, 0.6, {bottom:-180, alpha:1, ease:"Quint.easeIn", delay: -0.6});' + "\n" +
'' + "\n" +
'' + "\n" +
'function restartTimeline () {' + "\n" +
' counter++' + "\n" +
' if (counter > 3)' + "\n" +
' {' + "\n" +
'// // final tweens here' + "\n" +
' //TweenLite.to(element, 0.5, {top: 80, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(t1, 0.6, {top:5, alpha:1, ease:"Quint.easeOut", delay: 0});' + "\n" +
'' + "\n" +
' TweenLite.to(b1, 0.7, {bottom:5, alpha:1, ease:"Back.easeOut", delay: 0});' + "\n" +
' TweenLite.to(b2, 0.7, {bottom:5, alpha:1, ease:"Back.easeOut", delay: 0.2});' + "\n" +
' TweenLite.to(b3, 0.7, {bottom:5, alpha:1, ease:"Back.easeOut", delay: 0.4});' + "\n" +
' TweenLite.to(b4, 0.7, {bottom:5, alpha:1, ease:"Back.easeOut", delay: 0.6});' + "\n" +
'' + "\n" +
'' + "\n" +
' return false;' + "\n" +
' }' + "\n" +
' else' + "\n" +
' {' + "\n" +
' tl.restart(); ' + "\n" +
' }' + "\n" +
'}' + "\n" +
'' + "\n" +
'' + "\n" +
'' + "\n" +
'' + "\n" +
'function init () {' + "\n" +
' // Put your custom code here that should first be executed when documents is ready' + "\n" +
' // e.g. CMS code and tweens' + "\n" +
' API.registerImpression();' + "\n" +
' ' + "\n" +
' document.getElementById("container").onmouseover=mouseOver;' + "\n" +
' document.getElementById("container").onmouseout=mouseOut;' + "\n" +
' ' + "\n" +
' parent.OnAds_14a4e4ead720f67100e1b7e9a90844bc_isInViewport(); // Listen for the banner to enter the viewport / getting visible on the webpage.' + "\n" +
'}' + "\n" +
'' + "\n" +
'function inViewport ()' + "\n" +
'{' + "\n" +
' // put your code here that should first be executed when the banner is in the viewport / the visible part of the webpage' + "\n" +
' // e.g. tweens start' + "\n" +
' //tl.restart();' + "\n" +
'}' + "\n" +
'' + "\n" +
'' + "\n" +
'//new clicktag / redir function' + "\n" +
'//do NOT edit unless your are Master Yoda' + "\n" +
'//to use default clicktag call: redir();' + "\n" +
'//to add futher clicktags do: redir(\'http://url1.dk\', 1); and redir(\'http://url2.dk\', 2); and so on.' + "\n" +
'var lastClick = new Date().getTime();' + "\n" +
'function redir (url, itemId)' + "\n" +
'{' + "\n" +
' if (lastClick+500 > new Date().getTime())' + "\n" +
' {' + "\n" +
' return;' + "\n" +
' }' + "\n" +
' lastClick = new Date().getTime();' + "\n" +
'' + "\n" +
' if (url == undefined)' + "\n" +
' {' + "\n" +
' var url = landingUrl;' + "\n" +
' var itemId = 0;' + "\n" +
' }' + "\n" +
' window.open(clickTAG + url); ' + "\n" +
' API.registerEvent(API.EVENT_CLICK, clickTAG + url, itemId, clickTAG + url); ' + "\n" +
'}' + "\n" +
'' + "\n" +
'' + "\n" +
' ' + "\n";
OnAds_14a4e4ead720f67100e1b7e9a90844bc.src = 'javascript:window["contents"]';
}
function OnAds_14a4e4ead720f67100e1b7e9a90844bc_scroll (intMove)
{
document.body.scrollTop = document.body.scrollTop + intMove;
}
function OnAds_14a4e4ead720f67100e1b7e9a90844bc_isInScreen ()
{
if (OnAds_14a4e4ead720f67100e1b7e9a90844bc_isElementInViewport('OnAds_14a4e4ead720f67100e1b7e9a90844bc'))
{
// register inscreen view
document.getElementById('OnAds_14a4e4ead720f67100e1b7e9a90844bc').contentWindow.API.registerEvent(4);
}
else
{
setTimeout("OnAds_14a4e4ead720f67100e1b7e9a90844bc_isInScreen();", 500);
}
}
function OnAds_14a4e4ead720f67100e1b7e9a90844bc_isInViewport ()
{
if (OnAds_14a4e4ead720f67100e1b7e9a90844bc_isElementInViewport('OnAds_14a4e4ead720f67100e1b7e9a90844bc'))
{
document.getElementById('OnAds_14a4e4ead720f67100e1b7e9a90844bc').contentWindow.inViewport();
}
else
{
setTimeout("OnAds_14a4e4ead720f67100e1b7e9a90844bc_isInViewport()", 500);
}
}
function OnAds_14a4e4ead720f67100e1b7e9a90844bc_isElementInViewport(el) {
var rect = document.getElementById(el).getBoundingClientRect();
//tmp dba fix
if (rect.top == -15)
{
return true;
}
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.top <= (window.innerHeight || document. documentElement.clientHeight) &&
rect.left <= (window.innerWidth || document. documentElement.clientWidth)
);
}
if (OnAds_14a4e4ead720f67100e1b7e9a90844bc_mraid)
{
mraid.addEventListener('stateChange', function(state)
{
if (state == 'default')
{
OnAds_14a4e4ead720f67100e1b7e9a90844bc_collapse ();
}
});
if (mraid.getState() === 'loading')
{
mraid.addEventListener('ready', OnAds_14a4e4ead720f67100e1b7e9a90844bc_init);
}
else
{
OnAds_14a4e4ead720f67100e1b7e9a90844bc_init();
}
}
else
{
var OnAds_14a4e4ead720f67100e1b7e9a90844bc_AutoPolite = 0;
if (OnAds_14a4e4ead720f67100e1b7e9a90844bc_AutoPolite == 1)
{
OnAds_14a4e4ead720f67100e1b7e9a90844bc_autoPolite();
}
else
{
setTimeout("OnAds_14a4e4ead720f67100e1b7e9a90844bc_init();", 500);
}
}
function OnAds_14a4e4ead720f67100e1b7e9a90844bc_setCookie(c_name, value, exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}
function OnAds_14a4e4ead720f67100e1b7e9a90844bc_getCookie(c_name)
{
var c_value = document.cookie;
var c_start = c_value.indexOf(" " + c_name + "=");
if (c_start == -1)
{
c_start = c_value.indexOf(c_name + "=");
}
if (c_start == -1)
{
c_value = null;
}
else
{
c_start = c_value.indexOf("=", c_start) + 1;
var c_end = c_value.indexOf(";", c_start);
if (c_end == -1)
{
c_end = c_value.length;
}
c_value = unescape(c_value.substring(c_start,c_end));
}
return c_value;
}